import { useGlobalSetting } from './system'

export interface AppItem {
  /* 带baseAppCode时，为数组类型，将依次查找 */
  appCode: string | string[]
  extraData?: Recordable
}

export const BaseAppName = 'BaseAppName'

const { appCode } = useGlobalSetting()
export default {
  [BaseAppName]: {
    appCode: appCode
  }
} as Recordable<AppItem>
